#ifndef _USART_USART_H_
#define _USART_USART_H_
#include "main.h"

#define CheckSum_Num 13

typedef union
{
    // (R/W)|(0X01<<5)|(0X1F&0X00)
    uint8_t cmd_var;
    struct
    {
        uint8_t rw:1;
        uint8_t id:2;
        uint8_t cm:5;
    }bit;
} cmd_org;


void show(uint8_t Index);
uint8_t * pack(uint8_t len, uint8_t *txBuff);
void Unpacking(uint8_t *rxBuff);
uint8_t CheckSum(uint8_t *Ptr, uint8_t Number);
void sendf(uint8_t ch,uint8_t b);

#endif




